projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5889905
)
stack: check for widget before calling is_ancestor()
author
Christian Hergert
<christian@hergert.me>
Sun, 15 Feb 2015 02:11:54 +0000
(18:11 -0800)
committer
Christian Hergert
<christian@hergert.me>
Sun, 15 Feb 2015 02:11:54 +0000
(18:11 -0800)
We can hit this path during the destruction case, where widget has
been released.
This fixes a lot of superfluous error messages on console.
gtk/gtkstack.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstack.c
b/gtk/gtkstack.c
index 2125d66b69056eca7ee437b424803f55f6bf267a..652b856293f2f69454780b95bfd55bc23fc3a2d2 100644
(file)
--- a/
gtk/gtkstack.c
+++ b/
gtk/gtkstack.c
@@
-1023,6
+1023,7
@@
set_visible_child (GtkStack *stack,
focus = gtk_window_get_focus (GTK_WINDOW (toplevel));
if (focus &&
priv->visible_child &&
+ priv->visible_child->widget &&
gtk_widget_is_ancestor (focus, priv->visible_child->widget))
{
contains_focus = TRUE;